import _products from './products.json' //把json引进来

 const TIMEOUT = 100

 export default{
 	getProducts:function(cb,timeout){
 		setTimeout(
 			cb(_products)
 		,timeout||TIMEOUT)
 	},
 	buyProducts:function(payload,cb,timeout){
 		setTimeout(
 			cb(),
 			timeout||TIMEOUT
 		)
 	}
 }